package top.yxqz.spring.ioc.pojo;

import java.util.List;

/**
 * @author: 余小小
 * @date: 2023/4/7
 * @description：摩托车类
 */
public class Motorcycle {
    private String brand;//品牌
    private List<Car> carList;//车款

    public Motorcycle() {
    }

    public Motorcycle(String brand, List<Car> carList) {
        this.brand = brand;
        this.carList = carList;
    }

    /**
     * 获取
     * @return brand
     */
    public String getBrand() {
        return brand;
    }

    /**
     * 设置
     * @param brand
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 获取
     * @return carList
     */
    public List<Car> getCarList() {
        return carList;
    }

    /**
     * 设置
     * @param carList
     */
    public void setCarList(List<Car> carList) {
        this.carList = carList;
    }

    public String toString() {
        return "Motorcycle{brand = " + brand + ", carList = " + carList + "}";
    }
}
